<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>WEBSHOP CONTENT MANAGEMENT SYSTEM</title>
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="css/ajaxtabs.css" />
<!--[if lte IE 7]>
<style type="text/css">
html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/ddsmoothmenu.js"></script>
<script language="javascript" src="scripts/object.js"></script>
<script type="text/javascript" src="scripts/ajaxtabs.js"></script>
<script type="text/javascript" src="scripts/default.js"></script>
<script type="text/javascript" src="scripts/form.js"></script>
<script type="text/javascript" src="scripts/ajax.js"></script>
<script language="javascript" src="common/calendar/calendar2.js"></script>



<?php
	include("config.php");
?>
</head>
<body>
<div id="Container">
<!--//////////////////////////////////////////////////////////////////////////////////////////////////-->
<!------------------------------   TOP BAR  -------------------------------------->
<div id="Topbar">
	<!--<div id="Logo" class="left"><img src="images/logo.png" /></div>-->
    <div class="CMSTittle left">Quản lý hệ thống</div>
    <div class="ColorLink2 right">
    	<h4>
        	<a title="View your website" target="_blank" href="../">Xem website</a>
        	<a title="Change password of this account" href="?module=changepass">Đổi mật khẩu</a>
            <a title="Log out this system" href="?module=logout">Đăng xuất</a>
        </h4>
    </div>
    <div class="clear"></div>
</div>
<!------------------------------ END TOPBAR -------------------------------------->


<!------------------------------   MENU BAR  -------------------------------------->
<div id="MenuBar">
    <div id="smoothmenu1" class="ddsmoothmenu">
    	
        <?php
        include("menumain.php");
		?>
        
        <br style="clear: left" />
    </div>
</div>
<div class="Clear"></div>
<!------------------------------  END MENU BAR -------------------------------------->

<!--
<div class="BreadCrumb">
	<a href="#">Home</a> ::
	<a href="#">Category</a>
</div>
-->

<div id="ContentContainer">
	<div class="Content">
    	<!--************ START CONTENT ************ -->
        <?php
	switch($module)
	{
		case "":
			$module="menu";
			include("modules/".$module."/".$module.$action.".php");
			break;
		case "logout":
				unset($_SESSION['username']);
				unset($_SESSION['password']);
				linkto("index.php");
			break;
		case "".$module:
			include("modules/".$module."/".$module.$action.".php");
			break;
		
	}
	$ob->close($conn);  
	
  ?>
        <!--************ END CONTENT ************ -->
    </div>
</div>



<div id="BottomContainer">
	<div id="BottomMenu left">
    	<div class="MainMenu2">
        <ul>
            <li><a href="#">About us</a></li>
            <li><a href="#">Privacy Policy</a></li>
            <li><a href="#">Term of use</a></li>
        </ul>
        </div>
    </div>
    
    <div class="Clear"></div>
</div>

<!--//////////////////////////////////////////////////////////////////////////////////////////////////-->
<script type="text/javascript" src="scripts/object.js"></script>
</div>
</body>
</html>
